import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({
	plugins: [uni()],

	server: {
		// 本地跨域解决
		proxy: {
			"/api": {
				target: "https://www.baidu.com/",
				changeOrigin: true,
				rewrite: (path) => path.replace('/api', '')
			}
		}
	}
});